package design.pattern.SimpleFactory;

/**
 * 除法类
 */
public class OperationDIv extends Operation {
    @Override
    double getResult() throws Exception {
        if(getNumberB() == 0)
            throw new Exception("除数不能为0");
        return 0;
    }
}
